# n=int(input("请输入年份："))
def isLeapYear(n):
    if n % 400 == 0 or n % 4 == 0 and n % 100 != 0:
        return True
    else:
        return False
n=int(input("请输入年份："))
print(isLeapYear(n))